package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.OrderInnerHistoryDO;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单内部流转记录Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-17
 */
@Repository
public interface OrderInnerHistoryRepository extends JpaRepository<OrderInnerHistoryDO, Long>, JpaSpecificationExecutor<OrderInnerHistoryDO> {

    List<OrderInnerHistoryDO> findByMemberIdAndRoleIdAndOrderId(Long buyerMemberId, Long buyerRoleId, Long orderId, Sort sort);
}
